package org.gxuwz.core.dao;

import java.util.List;

import org.gxuwz.core.entity.TUser;
import org.gxuwz.core.entity.TUserRole;
import org.springframework.stereotype.Repository;

public interface IUserDao {
	//用户登陆时验证用户信息
	 public boolean validateTUser(String userid,String password);
    //获取用户角色
	 public String getTUserRole(String userid,String roleid);
	 //向数据库写入用户信息
	 public void saveTUser(TUser User);
	//向数据库写入用户角色信息
	 public void saveTUserRole(TUserRole UserRole);
	 
	public List<TUser> UserList();
	
	public List<TUserRole> UserRoleList();
	
	 public TUserRole getRoleId(String userid,String roleid);
	 

}